﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using QMERP.Domain.Entities;

namespace QMERP.Infrastructure.EFCore.Mappings
{
    public class User_OrganizationMapping : IEntityTypeConfiguration<User_Organization>
    {
        public void Configure(EntityTypeBuilder<User_Organization> builder)
        {
            builder.Property(x => x.UserId);
            builder.Property(x => x.OrganizationId);

            builder.HasIndex(x => x.Id);
            builder.HasIndex(x => x.UserId);
            builder.HasIndex(x => x.OrganizationId);
        }
    }
}
